<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibQQt: GumboVector Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibQQt
   &#160;<span id="projectnumber">v3.1</span>
   </div>
   <div id="projectbrief">开源、跨平台Qt应用程序框架中间件</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="struct_gumbo_vector-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">GumboVector Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="gumbo_8h_source.html">gumbo.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a161ea3bf7f915fae8350edded5149a92"><td class="memItemLeft" align="right" valign="top">void **&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_gumbo_vector.html#a161ea3bf7f915fae8350edded5149a92">data</a></td></tr>
<tr class="separator:a161ea3bf7f915fae8350edded5149a92"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc3aae0896f142d245cfe29c94dbdf66"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_gumbo_vector.html#abc3aae0896f142d245cfe29c94dbdf66">length</a></td></tr>
<tr class="separator:abc3aae0896f142d245cfe29c94dbdf66"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84033dd4f32fba2013aff52baeba6356"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_gumbo_vector.html#a84033dd4f32fba2013aff52baeba6356">capacity</a></td></tr>
<tr class="separator:a84033dd4f32fba2013aff52baeba6356"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A simple vector implementation. This stores a pointer to a data array and a length. All elements are stored as void*; client code must cast to the appropriate type. Overflows upon addition result in reallocation of the data array, with the size doubling to maintain O(1) amortized cost. There is no removal function, as this isn't needed for any of the operations within this library. Iteration can be done through inspecting the structure directly in a for-loop. </p>
</div><h2 class="groupheader">Member Data Documentation</h2>
<a id="a84033dd4f32fba2013aff52baeba6356"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a84033dd4f32fba2013aff52baeba6356">&#9670;&nbsp;</a></span>capacity</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int GumboVector::capacity</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Current array capacity. </p>

</div>
</div>
<a id="a161ea3bf7f915fae8350edded5149a92"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a161ea3bf7f915fae8350edded5149a92">&#9670;&nbsp;</a></span>data</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void** GumboVector::data</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Data elements. This points to a dynamically-allocated array of capacity elements, each a void* to the element itself. </p>

</div>
</div>
<a id="abc3aae0896f142d245cfe29c94dbdf66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abc3aae0896f142d245cfe29c94dbdf66">&#9670;&nbsp;</a></span>length</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int GumboVector::length</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Number of elements currently in the vector. </p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>R:/Develop/a0-develop/LibQQt/src/network/gumbo/parser/src/<a class="el" href="gumbo_8h_source.html">gumbo.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
